package 模板方法;

/**
 * @program: leetcode
 * @description:
 * @author: HuRan QQ1345122890
 * @create: 2021-11-07 13:01
 */
public class CharDisplay extends AbstractDisplay {
    private char ch;

    public CharDisplay(char ch) {
        this.ch = ch;
    }

    @Override
    void open() {
        System.out.println("<<");
    }

    @Override
    void print() {
        System.out.println(ch);
    }

    @Override
    void close() {
        System.out.println(">>");
    }
}






